﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;

namespace BLL
{
    public  class RolesBLL
    {
        Roles role = new Roles();
        public List<Roles> GetListRole()
        {
            return new RolesDAL().GetList<Roles>();
        }
        public bool AddRole(params SqlParameter [] parma)
        {
            
            return new RolesDAL().Add(role,parma);
        }
        public bool UpdateRole(params SqlParameter[] parma)
        {
            return new RolesDAL().Update(role, parma);
        }
        public bool DeleteRole(Roles role)
        {
            return new RolesDAL().DeleteById(role);
        }

    }
}
